package net.hn.hnms.biz.plan.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;


/**
 * @author zhaoyang
 * 洗选计划信息
 * @date 2022-08-03
 */
@Data
@ApiModel("洗选计划信息")
public class PlanWashingReq extends BaseReq {

    /**
     * ID
     */
    @ApiModelProperty(value = "id")
    private String washingPlanId;


    /**
     * 计划编号
     */
    @ApiModelProperty(value = "计划编号")
    private String washingPlanCode;

    /**
     * 计划名称
     */
    @ApiModelProperty(value = "计划名称")
    private String washingPlanName;

    /**
     * 计划类型 0日计划 1月计划
     */
    @ApiModelProperty(value = "计划类型 0日计划 1月计划")
    @NotBlank(message = "请选择计划类型")
    private String washingPlanType;

    /**
     * 计划开始时间
     */
    @ApiModelProperty(value = "计划开始时间")
    @NotBlank(message = "请选择计划日期")
    private String washingPlanStartDate;

    /**
     * 计划结束时间
     */
    @ApiModelProperty(value = "计划结束时间")
    private String washingPlanEndDate;

    /**
     * 计划洗选量
     */
    @ApiModelProperty(value = "计划洗选量")
    @Digits(integer = 9, fraction=2, message = "计划洗选量格式不正确")
    @DecimalMin(value = "0.00", message = "计划洗选量格式不正确")
    private BigDecimal washingPlanAmount;

    @ApiModelProperty(value = "煤矿编码",hidden=true)
    private String mineCode;


    @ApiModelProperty(value = "公司编号")
    private String companyCode;


    @ApiModelProperty(value = "煤矿名称")
    private String mineName;

    @ApiModelProperty(value = "公司名称")
    private String companyName;

}
